package com.itheima.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.SmsFlashPromotionSession;
import com.itheima.vo.SmsFlashPromotionSessionVo;

import java.util.List;

/**
* @author lenovo
* @description 针对表【sms_flash_promotion_session(限时购场次表)】的数据库操作Service
* @createDate 2022-10-11 14:26:17
*/
public interface SmsFlashPromotionSessionApi{

    //添加场次
    void sessionCreate(SmsFlashPromotionSession flashPromotionSession);

    //删除场次
    void sessionDelete(Long id);

    //获取全部场次
    List<SmsFlashPromotionSession> sessionList();

    //获取全部可选场次及其数量
    List<SmsFlashPromotionSessionVo> sessionSelectList(Long flashPromotionId);

    //修改启用状态
    void updateStatus(Long id, Integer status);

    //修改场次
    void sessionUpdate(Integer id, SmsFlashPromotionSession flashPromotionSession);

    //获取场次详情
    SmsFlashPromotionSession findSessionById(Long id);
}
